FROM php:7.4-apache

RUN docker-php-ext-install mysqli

COPY src/ /var/www/html/
COPY sql/ /docker-entrypoint-initdb.d/

RUN mkdir /var/www/html/uploads && chown www-data:www-data /var/www/html/uploads && chmod 777 /var/www/html/uploads

EXPOSE 80

